package pengo.wen.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class HelloWorldController {

    @RequestMapping("/hello")
    public String sayHello(Model model) {
        String message = "Hello World, Spring MVC 3.1!!!";
        model.addAttribute("msg", message);
        return "index";
    }
}
